tester3 2.2.0
Loading...
Searching...
No Matches
Tester 3 Click Driver

API for configuring and manipulating Tester 3 Click driver. More...

Topics

 Tester 3 MikroBUS Map
 MikroBUS pin mapping of Tester 3 Click driver.

Functions

void tester3_cfg_setup (tester3_cfg_t *cfg)
 Tester 3 configuration object setup function.
err_t tester3_init (tester3_t *ctx, tester3_cfg_t *cfg)
 Tester 3 initialization function.
void tester3_toggle_all (tester3_t *ctx, uint16_t num_toggles, uint16_t toggle_delay_ms)
 Tester 3 toggle all function.
void tester3_toggle_seq (tester3_t *ctx, uint16_t toggle_delay_ms)
 Tester 3 toggle seq function.

Detailed Description

API for configuring and manipulating Tester 3 Click driver.

Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.

Function Documentation

◆ tester3_cfg_setup()

void tester3_cfg_setup ( tester3_cfg_t * cfg)

Tester 3 configuration object setup function.

This function initializes Click configuration structure to initial values.

Parameters
[out]cfg: Click configuration structure. See tester3_cfg_t object definition for detailed explanation.
Returns
Nothing.
Note
The all used pins will be set to unconnected state.

◆ tester3_init()

err_t tester3_init ( tester3_t * ctx,
tester3_cfg_t * cfg )

Tester 3 initialization function.

This function initializes all necessary pins and peripherals used for this Click board.

Parameters
[out]ctx: Click context object. See tester3_t object definition for detailed explanation.
[in]cfg: Click configuration structure. See tester3_cfg_t object definition for detailed explanation.
Returns
  • 0 - Success,
  • -1 - Error. See #err_t definition for detailed explanation.
Note
None.

◆ tester3_toggle_all()

void tester3_toggle_all ( tester3_t * ctx,
uint16_t num_toggles,
uint16_t toggle_delay_ms )

Tester 3 toggle all function.

This function toggles all mikroBUS pins together a desired number of times with the selected delay between each toggle.

Parameters
[in]ctx: Click context object. See tester3_t object definition for detailed explanation.
[in]num_toggles: Number of toggles.
[in]toggle_delay_ms: Delay in milliseconds between each toggle.
Returns
None.
Note
None.

◆ tester3_toggle_seq()

void tester3_toggle_seq ( tester3_t * ctx,
uint16_t toggle_delay_ms )

Tester 3 toggle seq function.

This function toggles all mikroBUS pins one by one with the selected delay between each toggle.

Parameters
[in]ctx: Click context object. See tester3_t object definition for detailed explanation.
[in]toggle_delay_ms: Delay in milliseconds between each toggle.
Returns
None.
Note
None.